#define _CRT_SECURE_NO_WARNINGS 1

#include"Heap.h"

int main()
{
	HP hp;
	int a[] = { 7,6,5,4,3,2,1 };
	HPInit(&hp);
	for (int i = 0; i < 7; i++)
	{	
		HPPush(&hp, a[i]);
	}
	while (!HPEmpty(&hp))
	{
		printf("%d ", HPTop(&hp));
		HPPop(&hp);
	}
	HPDestroy(&hp);
	return 0;
}